home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_VB / PERCNT.ZIP;1 / SAMPLE.ZIP / PERCNTS.FRM (.txt) next >
Encoding:
Visual Basic Form  |  1993-05-30  |  2.3 KB  |  83 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "PerCnt Sample"
  5.    ClientHeight    =   1470
  6.    ClientLeft      =   1665
  7.    ClientTop       =   2220
  8.    ClientWidth     =   3510
  9.    Height          =   1875
  10.    Left            =   1605
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   1470
  15.    ScaleWidth      =   3510
  16.    Top             =   1875
  17.    Width           =   3630
  18.    Begin HScrollBar HScroll1 
  19.       Height          =   255
  20.       Left            =   240
  21.       Max             =   100
  22.       TabIndex        =   2
  23.       Top             =   1080
  24.       Width           =   3015
  25.    End
  26.    Begin CommandButton Command2 
  27.       Caption         =   "Down"
  28.       Height          =   375
  29.       Left            =   1800
  30.       TabIndex        =   1
  31.       Top             =   600
  32.       Width           =   1455
  33.    End
  34.    Begin CommandButton Command1 
  35.       Caption         =   "Up"
  36.       Height          =   375
  37.       Left            =   240
  38.       TabIndex        =   0
  39.       Top             =   600
  40.       Width           =   1455
  41.    End
  42.    Begin Percent Percent1 
  43.       BackColor       =   &H00FFFFFF&
  44.       Border          =   1  'Fixed Single
  45.       BorderEffect    =   0  'None
  46.       FontBold        =   0   'False
  47.       FontItalic      =   0   'False
  48.       FontName        =   "MS Sans Serif"
  49.       FontSize        =   15
  50.       FontStrikethru  =   0   'False
  51.       FontUnderline   =   0   'False
  52.       ForeColor       =   &H00FF0000&
  53.       Height          =   375
  54.       Left            =   240
  55.       Percent         =   23
  56.       Top             =   120
  57.       Width           =   3015
  58.    End
  59. Sub Command1_Click ()
  60.     Dim I, J As Integer
  61.     J = HScroll1.Value
  62.     For I = J To 100
  63.         DoEvents
  64.         Percent1.Percent = I
  65.         HScroll1.Value = I
  66.     Next I
  67. End Sub
  68. Sub Command2_Click ()
  69.     Dim I, J As Integer
  70.     J = HScroll1.Value
  71.     For I = J To 0 Step -1
  72.         DoEvents
  73.         Percent1.Percent = I
  74.         HScroll1.Value = I
  75.     Next I
  76. End Sub
  77. Sub HScroll1_Change ()
  78.     Percent1.Percent = HScroll1.Value
  79. End Sub
  80. Sub HScroll1_Scroll ()
  81.     Percent1.Percent = HScroll1.Value
  82. End Sub
  83.